package com.dragon.modules.yuegou.model.merchant;

import com.dragon.modules.yuegou.entity.merchant.AdviceEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 商户建议表模型类
 * 
 * @author pbuilder generated
 * @date 2019-05-08 10:58:38
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Advice extends AdviceEntity {

	/**
	 * 构造一个空商户建议表模型对象
	 */
	public Advice(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商户建议表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Advice(AdviceEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商户建议表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Advice(Advice other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Advice id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Advice busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 * @return 当前对象
	 */
    public Advice merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getContent() {
    	return content;
    }

    /**
	 * 设置建议内容
	 * 
	 * @param content 建议内容
	 * @return 当前对象
	 */
    public Advice content(String content) {
    	this.content = content;
    	return this;
    }

	@Override
	public LocalDateTime getCreateTime() {
    	return createTime;
    }

    /**
	 * 设置
	 * 
	 * @param createTime 
	 * @return 当前对象
	 */
    public Advice createTime(LocalDateTime createTime) {
    	this.createTime = createTime;
    	return this;
    }
}
